<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>注  册</title>
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <meta name="format-detection" content="telephone=no">
  <meta name="renderer" content="webkit">
  <meta http-equiv="Cache-Control" content="no-siteapp" />
  <link rel="alternate icon" type="image/png" href="assets/i/favicon.png">
  <link rel="stylesheet" href="assets/css/amazeui.min.css"/>
 
  <style>
    .header {
      text-align: center;
    }
    .header h1 {
      font-size: 200%;
      color: #333;
      margin-top: 30px;
    }
    .header p {
      font-size: 14px;
    }
  </style>

</head>

<body>

<div class="am-g">
  <div align = "center"class="am-u-lg-6 am-u-md-8 am-u-sm-centered">
    <h1>注     册</h1>
    <hr>
    <br>
    <br>
<script>
function check()
{ 
	var password=document.getElementById("p1"); //获取密码框值
    with(document.all){
    if(usr.value==""){
    	alert("请输入用户名！")
    }
    else if(password.value.length<6){
    	alert("密码长度必须大于六位！");
    }
   if(p1.value!=p2.value)
   {
     alert("两次密码不一致，请重新输入！")
	 p1.value = "";
	 p2.value = "";
   }
   else document.forms[0].submit();
   }
}
</script>
  <form action="Usr_register" name="lform" method="post" >
账号：&nbsp;&nbsp;&nbsp;<input type="text" name="user"id="usr"> <br />
密码：&nbsp;&nbsp;&nbsp;<input type="password" name="psw1" id ="p1"> <br />
确认密码：<input type="password" name="psw2" id ="p2"> <br />
手机号码：<input type="text" name="telephone"> <br />
	<span id="show_box" style="display:none; color:#09f;"></span>
	<br />
	<div align="center">
	<input class="am-btn am-btn-primary am-btn-sm "  type="button" value="注册" onclick="check()">
	</div>
    </form>
    <hr>
    <footer class="footer">
  <p>© 2015 <a href="#" target="_blank">sdkdsoftware14-1, Inc.</a> Licensed under <a
      href="#" target="_blank">SDKD license</a>. by WangZheng.</p>
</footer>
  </div>
</div>
</body>

</html>
